package cc.rengu.redp.bizimpl.enums;

/**
 * Created by Daniel on 2020/4/16.
 */
public enum ValidatMethodEnum {
    CHECK_1TO2_DEC("check1to2Dec","非法数值(可含1-2位小数)"),
    CHECK_1TO3_DEC("check1to3Dec","非法数值(可含1-3位小数)"),
    CHECK_ISNUM("isNum","包含非数字字符"),
    CHECK_BANK_CARD_NO("checkBankCardNo","格式不正确"),
    CHECK_TIMESTAMP("checkTimestamp","日期时间格式不正确（应如2011-08-15 13:40:00）"),
    CHECK_DATE8("checkDate8","格式不正确(应如20110815)"),
    CHECK_DATE10("checkDate10","格式不正确(应如2011-08-15)"),
    CHECK_TIME8("checkTime8","格式不正确(应如11:08:15)"),
    CHECK_TIME6("checkTime6","格式不正确(应如110815)"),
    CHECK_PHONE("checkPhone","手机号或座机号格式不正确"),
    CHECK_EMAIL("checkEmail","EMAIL格式不正确"),
    CHECK_LONGITUDE_OR_LATITUDE("checkLongitudeOrLatitude","格式不正确"),
    CHECK_ALPH_OR_NUM("checkAlphOrNum","格式不正确(只能包含数字或字母)"),
    CHECK_IP("checkIP","格式不正确"),
    CHECK_DOMAIN("checkDomain","格式不正确"),
    CHECK_IDENTITY_NUM("checkIdentityNum","身份证格式不正确")
    ;

    private String type;
    private String desc;

    ValidatMethodEnum(String type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
